package com.example.eureka_feign_client.Service;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "compute-service",fallback = UserClientHystrixImpl.class)
public interface UserClient {
    @RequestMapping(method = RequestMethod.GET, value = "/getInfo")
    public String getuserinfostr();

    @RequestMapping(method = RequestMethod.GET, value = "/info")
    public  String  info();
}
